3.2.52 \(\int \frac {x^2 (a+b \log (c x^n))}{(d+e x)^{3/2}} \, dx\) [152]

Optimal. Leaf size=146 \[ \frac {20 b d n \sqrt {d+e x}}{3 e^3}-\frac {4 b n (d+e x)^{3/2}}{9 e^3}-\frac {32 b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{3 e^3}-\frac {2 d^2 \left (a+b \log \left (c x^n\right )\right )}{e^3 \sqrt {d+e x}}-\frac {4 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^3}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^3} \]

[Out]

-4/9*b*n*(e*x+d)^(3/2)/e^3-32/3*b*d^(3/2)*n*arctanh((e*x+d)^(1/2)/d^(1/2))/e^3+2/3*(e*x+d)^(3/2)*(a+b*ln(c*x^n
))/e^3-2*d^2*(a+b*ln(c*x^n))/e^3/(e*x+d)^(1/2)+20/3*b*d*n*(e*x+d)^(1/2)/e^3-4*d*(a+b*ln(c*x^n))*(e*x+d)^(1/2)/
e^3

________________________________________________________________________________________

Rubi [A]
time = 0.11, antiderivative size = 146, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {45, 2392, 12, 911, 1167, 214} \begin {gather*} -\frac {2 d^2 \left (a+b \log \left (c x^n\right )\right )}{e^3 \sqrt {d+e x}}-\frac {4 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^3}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^3}-\frac {32 b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{3 e^3}+\frac {20 b d n \sqrt {d+e x}}{3 e^3}-\frac {4 b n (d+e x)^{3/2}}{9 e^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(x^2*(a + b*Log[c*x^n]))/(d + e*x)^(3/2),x]

[Out]

(20*b*d*n*Sqrt[d + e*x])/(3*e^3) - (4*b*n*(d + e*x)^(3/2))/(9*e^3) - (32*b*d^(3/2)*n*ArcTanh[Sqrt[d + e*x]/Sqr
t[d]])/(3*e^3) - (2*d^2*(a + b*Log[c*x^n]))/(e^3*Sqrt[d + e*x]) - (4*d*Sqrt[d + e*x]*(a + b*Log[c*x^n]))/e^3 +
 (2*(d + e*x)^(3/2)*(a + b*Log[c*x^n]))/(3*e^3)

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 214

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]

Rule 911

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))^(n_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :
> With[{q = Denominator[m]}, Dist[q/e, Subst[Int[x^(q*(m + 1) - 1)*((e*f - d*g)/e + g*(x^q/e))^n*((c*d^2 - b*d
*e + a*e^2)/e^2 - (2*c*d - b*e)*(x^q/e^2) + c*(x^(2*q)/e^2))^p, x], x, (d + e*x)^(1/q)], x]] /; FreeQ[{a, b, c
, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && IntegersQ[n,
 p] && FractionQ[m]

Rule 1167

Int[((d_) + (e_.)*(x_)^2)^(q_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(
d + e*x^2)^q*(a + b*x^2 + c*x^4)^p, x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 -
b*d*e + a*e^2, 0] && IGtQ[p, 0] && IGtQ[q, -2]

Rule 2392

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> Wit
h[{u = IntHide[(f*x)^m*(d + e*x^r)^q, x]}, Dist[a + b*Log[c*x^n], u, x] - Dist[b*n, Int[SimplifyIntegrand[u/x,
 x], x], x] /; ((EqQ[r, 1] || EqQ[r, 2]) && IntegerQ[m] && IntegerQ[q - 1/2]) || InverseFunctionFreeQ[u, x]] /
; FreeQ[{a, b, c, d, e, f, m, n, q, r}, x] && IntegerQ[2*q] && ((IntegerQ[m] && IntegerQ[r]) || IGtQ[q, 0])

Rubi steps

\begin {align*} \int \frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{(d+e x)^{3/2}} \, dx &=-\frac {2 d^2 \left (a+b \log \left (c x^n\right )\right )}{e^3 \sqrt {d+e x}}-\frac {4 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^3}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^3}-(b n) \int \frac {2 \left (-8 d^2-4 d e x+e^2 x^2\right )}{3 e^3 x \sqrt {d+e x}} \, dx\\ &=-\frac {2 d^2 \left (a+b \log \left (c x^n\right )\right )}{e^3 \sqrt {d+e x}}-\frac {4 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^3}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^3}-\frac {(2 b n) \int \frac {-8 d^2-4 d e x+e^2 x^2}{x \sqrt {d+e x}} \, dx}{3 e^3}\\ &=-\frac {2 d^2 \left (a+b \log \left (c x^n\right )\right )}{e^3 \sqrt {d+e x}}-\frac {4 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^3}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^3}-\frac {(4 b n) \text {Subst}\left (\int \frac {-3 d^2-6 d x^2+x^4}{-\frac {d}{e}+\frac {x^2}{e}} \, dx,x,\sqrt {d+e x}\right )}{3 e^4}\\ &=-\frac {2 d^2 \left (a+b \log \left (c x^n\right )\right )}{e^3 \sqrt {d+e x}}-\frac {4 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^3}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^3}-\frac {(4 b n) \text {Subst}\left (\int \left (-5 d e+e x^2-\frac {8 d^2}{-\frac {d}{e}+\frac {x^2}{e}}\right ) \, dx,x,\sqrt {d+e x}\right )}{3 e^4}\\ &=\frac {20 b d n \sqrt {d+e x}}{3 e^3}-\frac {4 b n (d+e x)^{3/2}}{9 e^3}-\frac {2 d^2 \left (a+b \log \left (c x^n\right )\right )}{e^3 \sqrt {d+e x}}-\frac {4 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^3}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^3}+\frac {\left (32 b d^2 n\right ) \text {Subst}\left (\int \frac {1}{-\frac {d}{e}+\frac {x^2}{e}} \, dx,x,\sqrt {d+e x}\right )}{3 e^4}\\ &=\frac {20 b d n \sqrt {d+e x}}{3 e^3}-\frac {4 b n (d+e x)^{3/2}}{9 e^3}-\frac {32 b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{3 e^3}-\frac {2 d^2 \left (a+b \log \left (c x^n\right )\right )}{e^3 \sqrt {d+e x}}-\frac {4 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^3}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.07, size = 124, normalized size = 0.85 \begin {gather*} \frac {-48 a d^2+56 b d^2 n-24 a d e x+52 b d e n x+6 a e^2 x^2-4 b e^2 n x^2-96 b d^{3/2} n \sqrt {d+e x} \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )-6 b \left (8 d^2+4 d e x-e^2 x^2\right ) \log \left (c x^n\right )}{9 e^3 \sqrt {d+e x}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(x^2*(a + b*Log[c*x^n]))/(d + e*x)^(3/2),x]

[Out]

(-48*a*d^2 + 56*b*d^2*n - 24*a*d*e*x + 52*b*d*e*n*x + 6*a*e^2*x^2 - 4*b*e^2*n*x^2 - 96*b*d^(3/2)*n*Sqrt[d + e*
x]*ArcTanh[Sqrt[d + e*x]/Sqrt[d]] - 6*b*(8*d^2 + 4*d*e*x - e^2*x^2)*Log[c*x^n])/(9*e^3*Sqrt[d + e*x])

________________________________________________________________________________________

Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {x^{2} \left (a +b \ln \left (c \,x^{n}\right )\right )}{\left (e x +d \right )^{\frac {3}{2}}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(a+b*ln(c*x^n))/(e*x+d)^(3/2),x)

[Out]

int(x^2*(a+b*ln(c*x^n))/(e*x+d)^(3/2),x)

________________________________________________________________________________________

Maxima [A]
time = 0.50, size = 159, normalized size = 1.09 \begin {gather*} \frac {4}{9} \, {\left (12 \, d^{\frac {3}{2}} e^{\left (-3\right )} \log \left (\frac {\sqrt {x e + d} - \sqrt {d}}{\sqrt {x e + d} + \sqrt {d}}\right ) - {\left ({\left (x e + d\right )}^{\frac {3}{2}} - 15 \, \sqrt {x e + d} d\right )} e^{\left (-3\right )}\right )} b n + \frac {2}{3} \, {\left ({\left (x e + d\right )}^{\frac {3}{2}} e^{\left (-3\right )} - 6 \, \sqrt {x e + d} d e^{\left (-3\right )} - \frac {3 \, d^{2} e^{\left (-3\right )}}{\sqrt {x e + d}}\right )} b \log \left (c x^{n}\right ) + \frac {2}{3} \, {\left ({\left (x e + d\right )}^{\frac {3}{2}} e^{\left (-3\right )} - 6 \, \sqrt {x e + d} d e^{\left (-3\right )} - \frac {3 \, d^{2} e^{\left (-3\right )}}{\sqrt {x e + d}}\right )} a \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a+b*log(c*x^n))/(e*x+d)^(3/2),x, algorithm="maxima")

[Out]

4/9*(12*d^(3/2)*e^(-3)*log((sqrt(x*e + d) - sqrt(d))/(sqrt(x*e + d) + sqrt(d))) - ((x*e + d)^(3/2) - 15*sqrt(x
*e + d)*d)*e^(-3))*b*n + 2/3*((x*e + d)^(3/2)*e^(-3) - 6*sqrt(x*e + d)*d*e^(-3) - 3*d^2*e^(-3)/sqrt(x*e + d))*
b*log(c*x^n) + 2/3*((x*e + d)^(3/2)*e^(-3) - 6*sqrt(x*e + d)*d*e^(-3) - 3*d^2*e^(-3)/sqrt(x*e + d))*a

________________________________________________________________________________________

Fricas [A]
time = 0.41, size = 325, normalized size = 2.23 \begin {gather*} \left [\frac {2 \, {\left (24 \, {\left (b d n x e + b d^{2} n\right )} \sqrt {d} \log \left (\frac {x e - 2 \, \sqrt {x e + d} \sqrt {d} + 2 \, d}{x}\right ) + {\left (28 \, b d^{2} n - {\left (2 \, b n - 3 \, a\right )} x^{2} e^{2} - 24 \, a d^{2} + 2 \, {\left (13 \, b d n - 6 \, a d\right )} x e + 3 \, {\left (b x^{2} e^{2} - 4 \, b d x e - 8 \, b d^{2}\right )} \log \left (c\right ) + 3 \, {\left (b n x^{2} e^{2} - 4 \, b d n x e - 8 \, b d^{2} n\right )} \log \left (x\right )\right )} \sqrt {x e + d}\right )}}{9 \, {\left (x e^{4} + d e^{3}\right )}}, \frac {2 \, {\left (48 \, {\left (b d n x e + b d^{2} n\right )} \sqrt {-d} \arctan \left (\frac {\sqrt {x e + d} \sqrt {-d}}{d}\right ) + {\left (28 \, b d^{2} n - {\left (2 \, b n - 3 \, a\right )} x^{2} e^{2} - 24 \, a d^{2} + 2 \, {\left (13 \, b d n - 6 \, a d\right )} x e + 3 \, {\left (b x^{2} e^{2} - 4 \, b d x e - 8 \, b d^{2}\right )} \log \left (c\right ) + 3 \, {\left (b n x^{2} e^{2} - 4 \, b d n x e - 8 \, b d^{2} n\right )} \log \left (x\right )\right )} \sqrt {x e + d}\right )}}{9 \, {\left (x e^{4} + d e^{3}\right )}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a+b*log(c*x^n))/(e*x+d)^(3/2),x, algorithm="fricas")

[Out]

[2/9*(24*(b*d*n*x*e + b*d^2*n)*sqrt(d)*log((x*e - 2*sqrt(x*e + d)*sqrt(d) + 2*d)/x) + (28*b*d^2*n - (2*b*n - 3
*a)*x^2*e^2 - 24*a*d^2 + 2*(13*b*d*n - 6*a*d)*x*e + 3*(b*x^2*e^2 - 4*b*d*x*e - 8*b*d^2)*log(c) + 3*(b*n*x^2*e^
2 - 4*b*d*n*x*e - 8*b*d^2*n)*log(x))*sqrt(x*e + d))/(x*e^4 + d*e^3), 2/9*(48*(b*d*n*x*e + b*d^2*n)*sqrt(-d)*ar
ctan(sqrt(x*e + d)*sqrt(-d)/d) + (28*b*d^2*n - (2*b*n - 3*a)*x^2*e^2 - 24*a*d^2 + 2*(13*b*d*n - 6*a*d)*x*e + 3
*(b*x^2*e^2 - 4*b*d*x*e - 8*b*d^2)*log(c) + 3*(b*n*x^2*e^2 - 4*b*d*n*x*e - 8*b*d^2*n)*log(x))*sqrt(x*e + d))/(
x*e^4 + d*e^3)]

________________________________________________________________________________________

Sympy [A]
time = 20.51, size = 262, normalized size = 1.79 \begin {gather*} \frac {- \frac {2 a d^{2}}{\sqrt {d + e x}} - 4 a d \sqrt {d + e x} + \frac {2 a \left (d + e x\right )^{\frac {3}{2}}}{3} + 2 b d^{2} \cdot \left (\frac {2 n \operatorname {atan}{\left (\frac {\sqrt {d + e x}}{\sqrt {- d}} \right )}}{\sqrt {- d}} - \frac {\log {\left (c \left (- \frac {d}{e} + \frac {d + e x}{e}\right )^{n} \right )}}{\sqrt {d + e x}}\right ) - 4 b d \left (\sqrt {d + e x} \log {\left (c \left (- \frac {d}{e} + \frac {d + e x}{e}\right )^{n} \right )} - \frac {2 n \left (\frac {d e \operatorname {atan}{\left (\frac {\sqrt {d + e x}}{\sqrt {- d}} \right )}}{\sqrt {- d}} + e \sqrt {d + e x}\right )}{e}\right ) + 2 b \left (\frac {\left (d + e x\right )^{\frac {3}{2}} \log {\left (c \left (- \frac {d}{e} + \frac {d + e x}{e}\right )^{n} \right )}}{3} - \frac {2 n \left (\frac {d^{2} e \operatorname {atan}{\left (\frac {\sqrt {d + e x}}{\sqrt {- d}} \right )}}{\sqrt {- d}} + d e \sqrt {d + e x} + \frac {e \left (d + e x\right )^{\frac {3}{2}}}{3}\right )}{3 e}\right )}{e^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*(a+b*ln(c*x**n))/(e*x+d)**(3/2),x)

[Out]

(-2*a*d**2/sqrt(d + e*x) - 4*a*d*sqrt(d + e*x) + 2*a*(d + e*x)**(3/2)/3 + 2*b*d**2*(2*n*atan(sqrt(d + e*x)/sqr
t(-d))/sqrt(-d) - log(c*(-d/e + (d + e*x)/e)**n)/sqrt(d + e*x)) - 4*b*d*(sqrt(d + e*x)*log(c*(-d/e + (d + e*x)
/e)**n) - 2*n*(d*e*atan(sqrt(d + e*x)/sqrt(-d))/sqrt(-d) + e*sqrt(d + e*x))/e) + 2*b*((d + e*x)**(3/2)*log(c*(
-d/e + (d + e*x)/e)**n)/3 - 2*n*(d**2*e*atan(sqrt(d + e*x)/sqrt(-d))/sqrt(-d) + d*e*sqrt(d + e*x) + e*(d + e*x
)**(3/2)/3)/(3*e)))/e**3

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a+b*log(c*x^n))/(e*x+d)^(3/2),x, algorithm="giac")

[Out]

integrate((b*log(c*x^n) + a)*x^2/(x*e + d)^(3/2), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2\,\left (a+b\,\ln \left (c\,x^n\right )\right )}{{\left (d+e\,x\right )}^{3/2}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^2*(a + b*log(c*x^n)))/(d + e*x)^(3/2),x)

[Out]

int((x^2*(a + b*log(c*x^n)))/(d + e*x)^(3/2), x)

________________________________________________________________________________________